package polymorphism;

/**
 * @author yuisama
 * @date 2022/09/14 19:14
 **/
public class Animal {
    protected String name;
    protected int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println(this.name + "正在吃饭");
    }
}